import unittest,time
from selenium import webdriver
from selenium.webdriver.common.by import By

class login(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Edge()

    def tearDown(self):
        time.sleep(3)
        self.driver.quit()

    def test_01(self):
        self.driver.get('http://10.59.9.14:7003/')
        self.driver.find_element(By.XPATH,'/html/body/div[1]/div/div[2]/ul/li[1]/a').click()
        self.driver.find_element(By.NAME,'username').send_keys('15235688537')
        self.driver.find_element(By.NAME,'password').send_keys('123456')
        time.sleep(10)
        self.driver.find_element(By.CLASS_NAME,'finish-btn').click()
        time.sleep(3)